﻿namespace Zhp.Common.Appsetting
{
    /// <summary>
    /// JWT配置
    /// </summary>
    [AppSetting("JwtOptions")]
    public class JwtOptions
    {
        /// <summary>
        /// JWT 签发方
        /// </summary>
        public string Issuer { get; set; }

        /// <summary>
        /// JWT 接收方
        /// </summary>
        public string Audience { get; set; }

        /// <summary>
        /// AccessToken过期时间分钟
        /// </summary>
        public int Expires { get; set; }

        /// <summary>
        /// RefreshToken过期时间天
        /// </summary>
        public int RefreshExpires { get; set; }

        /// <summary>
        /// 密钥
        /// </summary>
        public string SigningKey { get; set; }
    }
}
